package cn.zebra.dev.product.module.category.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 商品分类中间表
 *
 * @author runnable@sina.cn
 */
@TableName("product_category")
@Getter
@Setter
public class ProductCategoryEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Long id;

    @ApiModelProperty(value = "商品id", hidden = true)
    private Long productId;

    @ApiModelProperty(value = "商品名称", hidden = true)
    @TableField(exist = false)
    private String productName;

    @ApiModelProperty(value = "分类id", hidden = true)
    private Long categoryId;

    @ApiModelProperty(value = "分类名称", hidden = true)
    @TableField(exist = false)
    private String categoryName;
}
